﻿<%@ Page Language="C#" MasterPageFile="~/AdminZone/AdminMaster.master" AutoEventWireup="true" CodeFile="TestingSystem.aspx.cs" Inherits="AdminZone_TestingSystem" Title="Untitled Page" %>

<%@ Register Assembly="obout_Grid_NET" Namespace="Obout.Grid" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div id="toolbar-box">
        <div class="m">
            <div class="pagetitle">
                <h2>
                    Testing System
                </h2>
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <!-----START Percent Config table-------->
            <div class="width-40 fltlft">
                <fieldset class="adminform">
                    <legend>Help</legend>
                    <asp:Label ID="lblError" runat="server" ForeColor="Red" Font-Bold="true" ></asp:Label>
                    <h4>
                        Reset điểm của tất cả thành viên về giá trị mặc định (Default 2600 Points)</h4>
                    <br />
                    
                    <asp:TextBox ID="txtPoint" runat="server"></asp:TextBox>
                    <asp:Button ID="btnReset" runat="server" Text="Reset Point of User" class="button"
                        OnClick="btnReset_Click" />
                    <br />
                    <br />
                    <asp:Label ID="lblLevelError" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                    <br />
                    <cc1:Grid ID="Grid1" runat="server" AllowFiltering="True" AutoGenerateColumns="False">
                        <Columns>
                            <cc1:Column DataField="MemberID" HeaderText="ID" Index="0" Width="80">
                            </cc1:Column>
                            <cc1:Column DataField="UserName" HeaderText="Tài khoản thành viên" Index="1">
                            </cc1:Column>
                            <cc1:Column DataField="PointNumber" HeaderText="Số điểm" Index="2">
                            </cc1:Column>
                        </Columns>
                    </cc1:Grid>
                </fieldset>
            </div>
            <div class="width-60  fltrt">
                <fieldset class="adminform">
                    <legend>Services Management</legend>
                    <h4>
                        Hỗ trợ kiểm tra hệ thống bằng cách giao dịch theo từng thành viên
                    </h4>
                    <br />
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Font-Bold="true"></asp:Label>
                    <br />
                    
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="MemberID" HeaderText="ID" />
                            <asp:BoundField DataField="UserName" HeaderText="Tài khoản" />
                            <asp:BoundField DataField="FullName" HeaderText="Tên thành viên" />
                            <asp:BoundField DataField="RegDate" HeaderText="Ngày đăng ký" />
                            <asp:HyperLinkField Text="Buy Product" DataNavigateUrlFields="UserName" 
                                DataNavigateUrlFormatString="~/AdminZone/CalculatePoints.aspx?productId=5&id={0}&point=2600&confirm=false"/>
                        </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>                                      
                    
                   <%-- <cc1:Grid ID="Grid2" runat="server" AutoGenerateColumns="False" RowEditTemplateId="tplRowEdit"
                        AllowAddingRecords="False" OnUpdateCommand="UpdateRecord" >
                        <TemplateSettings RowEditTemplateId="tplRowEdit"></TemplateSettings>
                        <Columns>
                            <cc1:Column DataField="MemberID" HeaderText="ID" Index="0" Width="80">
                                <TemplateSettings RowEditTemplateControlId="txtMemberID" RowEditTemplateControlPropertyName="value" />
                            </cc1:Column>
                            <cc1:Column DataField="UserName" HeaderText="Tài khoản" Index="1" Width="100">
                            </cc1:Column>
                            <cc1:Column DataField="FullName" HeaderText="Tên thành viên" Index="2">
                            </cc1:Column>
                            <cc1:Column DataField="RegDate" HeaderText="Ngày đăng ký" Index="3">
                            </cc1:Column>
                            <cc1:Column AllowEdit="true" HeaderText="Buy product" Index="6" AllowDelete="false"
                                Width="160">
                            </cc1:Column>
                        </Columns>
                        <TemplateSettings RowEditTemplateId="tplRowEdit"></TemplateSettings>
                        <Templates>
                            <cc1:GridTemplate runat="server" ID="tplRowEdit">
                                <Template>                                    
                                   Hello
                                </Template>
                            </cc1:GridTemplate>
                        </Templates>
                    </cc1:Grid>--%>
                </fieldset>
            </div>
            <div class="clr" />
        </div>
    </div>
</asp:Content>

